<?php
include('./data/config.inc.php');
include("./global/session.class.php");



$_SESSION['wid'] =101;
if($_SERVER['SERVER_NAME']=='z.cn'){
	$_SESSION['wid'] =100;
}


//echo $_SERVER["SERVER_PORT"];echo '-';echo $hport;exit;

/*if($_SERVER['SERVER_PORT']==21000 | $_SERVER['SERVER_PORT']==21001){
   $folder=$config['adir'];
}else if( $_SERVER["SERVER_PORT"]==21088){
   $folder=$config['hdir'];
}else if($_SERVER['SERVER_PORT']==21100 | $_SERVER['SERVER_PORT']==21101){
   $folder=$config['udir'];
}else{
   echo "<script>window.location.href='http://google.com';</script>"; 
}

$com = explode('.',$_SERVER['SERVER_NAME']);
$com = substr($com[0],strlen($com[0])-1,1);*/

if($com==''){
  /* echo "<script>window.location.href='http://google.com';</script>"; 
   exit;*/
}
if($_SERVER['SERVER_NAME']=='n.cn'){
   $folder="agent";
}else if($_SERVER['SERVER_NAME']=='z.cn'){
   $folder="hide";
}else if($_SERVER['SERVER_NAME']=='m.cn'){
   $folder="usern";
}else if($_SERVER['SERVER_NAME']=='v.cn'){
   $_SESSION['mobi'] =1;
   $folder="mobi";
}else{
   echo "<script>window.location.href='http://google.com';</script>"; 
}
if(is_numeric($com) & $com>=1 & $com<=5 & strlen($com)==1){
   $com = $com;
}else{
    $com = '';
}

echo "
<html>
<head>
<title></title>
<script language='javascript'>

function stop(){
return false;
}
document.oncontextmenu=stop;
function hideinfo(){ if(event.srcElement.tagName=='A'){
   window.status=event.srcElement.innerText}
}
   document.onmouseover=hideinfo; 
	document.onmousemove=hideinfo;
</script>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
</head>
<frameset rows='0,*' frameborder='NO' border='0' framespacing='0'>
  <frame src='#' name='topFrame' scrolling='NO' noresize >
  <frame src='$folder/?com=".$com."' name='indexFrame'>
</frameset>
<noframes><body>
</body></noframes>
</html>";
?>
